package off_imp

import (
	"bp/internal/service/com/apportioner"
	// "bp/internal/util"
	"context"
)

func (s *OffBackendApiImp) AsyncApportionOff(ctx context.Context, transactionIDs []int64) {
	for _, v := range transactionIDs {
		chApportion := s.comHub.ApportionService.GetApportionWorker()
		chApportion <- apportioner.ApportionTransactionID(v)
	}
}
